package com.lry.protocol;

public enum ResultEnums {

    OK((byte)0x1,"OK"),

    FAIL((byte)0x2,"FAIL");

    private final byte code;

    private final String name;

    ResultEnums(final byte code,String name) {
        this.code = code;
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public byte getCode() {
        return code;
    }
}
